home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 722 / 722.xpi / chrome / noscript.jar / content / noscript / ABELexer.js < prev    next >
Text File  |  2010-02-12  |  30KB  |  911 lines

  1. // $ANTLR 3.1.1 X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g 2009-07-12 21:45:06
  2.  
  3. var ABELexer = function(input, state) {
  4. // alternate constructor @todo
  5. // public ABELexer(CharStream input)
  6. // public ABELexer(CharStream input, RecognizerSharedState state) {
  7.     if (!state) {
  8.         state = new org.antlr.runtime.RecognizerSharedState();
  9.     }
  10.  
  11.     (function(){
  12.     }).call(this);
  13.  
  14.     this.dfa9 = new ABELexer.DFA9(this);
  15.     ABELexer.superclass.constructor.call(this, input, state);
  16.  
  17.  
  18. };
  19.  
  20. org.antlr.lang.augmentObject(ABELexer, {
  21.     T_FROM: 9,
  22.     GLOB: 12,
  23.     HTTPVERB: 7,
  24.     A_LOGOUT: 16,
  25.     A_DENY: 15,
  26.     T_ACTION: 4,
  27.     SUB: 8,
  28.     T_METHODS: 5,
  29.     EOF: -1,
  30.     URI: 13,
  31.     WS: 21,
  32.     URI_PART: 20,
  33.     A_SANDBOX: 17,
  34.     URI_START: 19,
  35.     ALL: 6,
  36.     A_ACCEPT: 18,
  37.     REGEXP: 11,
  38.     LOCATION: 14,
  39.     T_SITE: 10,
  40.     COMMENT: 22
  41. });
  42.  
  43. (function(){
  44. var HIDDEN = org.antlr.runtime.Token.HIDDEN_CHANNEL,
  45.     EOF = org.antlr.runtime.Token.EOF;
  46. org.antlr.lang.extend(ABELexer, org.antlr.runtime.Lexer, {
  47.     T_FROM : 9,
  48.     GLOB : 12,
  49.     HTTPVERB : 7,
  50.     A_LOGOUT : 16,
  51.     A_DENY : 15,
  52.     T_ACTION : 4,
  53.     SUB : 8,
  54.     T_METHODS : 5,
  55.     EOF : -1,
  56.     URI : 13,
  57.     WS : 21,
  58.     URI_PART : 20,
  59.     A_SANDBOX : 17,
  60.     URI_START : 19,
  61.     ALL : 6,
  62.     A_ACCEPT : 18,
  63.     REGEXP : 11,
  64.     LOCATION : 14,
  65.     T_SITE : 10,
  66.     COMMENT : 22,
  67.     getGrammarFileName: function() { return "X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g"; }
  68. });
  69. org.antlr.lang.augmentObject(ABELexer.prototype, {
  70.     // $ANTLR start T_SITE
  71.     mT_SITE: function()  {
  72.         try {
  73.             var _type = this.T_SITE;
  74.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  75.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:34:11: ( 'Site' )
  76.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:34:13: 'Site'
  77.             this.match("Site"); 
  78.  
  79.  
  80.  
  81.  
  82.             this.state.type = _type;
  83.             this.state.channel = _channel;
  84.         }
  85.         finally {
  86.         }
  87.     },
  88.     // $ANTLR end "T_SITE",
  89.  
  90.     // $ANTLR start T_FROM
  91.     mT_FROM: function()  {
  92.         try {
  93.             var _type = this.T_FROM;
  94.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  95.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:35:11: ( ( 'f' | 'F' ) 'rom' )
  96.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:35:13: ( 'f' | 'F' ) 'rom'
  97.             if ( this.input.LA(1)=='F'||this.input.LA(1)=='f' ) {
  98.                 this.input.consume();
  99.  
  100.             }
  101.             else {
  102.                 var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  103.                 this.recover(mse);
  104.                 throw mse;}
  105.  
  106.             this.match("rom"); 
  107.  
  108.  
  109.  
  110.  
  111.             this.state.type = _type;
  112.             this.state.channel = _channel;
  113.         }
  114.         finally {
  115.         }
  116.     },
  117.     // $ANTLR end "T_FROM",
  118.  
  119.     // $ANTLR start A_DENY
  120.     mA_DENY: function()  {
  121.         try {
  122.             var _type = this.A_DENY;
  123.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  124.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:36:11: ( 'Deny' )
  125.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:36:13: 'Deny'
  126.             this.match("Deny"); 
  127.  
  128.  
  129.  
  130.  
  131.             this.state.type = _type;
  132.             this.state.channel = _channel;
  133.         }
  134.         finally {
  135.         }
  136.     },
  137.     // $ANTLR end "A_DENY",
  138.  
  139.     // $ANTLR start A_LOGOUT
  140.     mA_LOGOUT: function()  {
  141.         try {
  142.             var _type = this.A_LOGOUT;
  143.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  144.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:37:11: ( 'Logout' | 'Anon' ( 'ymize' )? )
  145.             var alt2=2;
  146.             var LA2_0 = this.input.LA(1);
  147.  
  148.             if ( (LA2_0=='L') ) {
  149.                 alt2=1;
  150.             }
  151.             else if ( (LA2_0=='A') ) {
  152.                 alt2=2;
  153.             }
  154.             else {
  155.                 var nvae =
  156.                     new org.antlr.runtime.NoViableAltException("", 2, 0, this.input);
  157.  
  158.                 throw nvae;
  159.             }
  160.             switch (alt2) {
  161.                 case 1 :
  162.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:37:13: 'Logout'
  163.                     this.match("Logout"); 
  164.  
  165.  
  166.  
  167.                     break;
  168.                 case 2 :
  169.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:37:24: 'Anon' ( 'ymize' )?
  170.                     this.match("Anon"); 
  171.  
  172.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:37:31: ( 'ymize' )?
  173.                     var alt1=2;
  174.                     var LA1_0 = this.input.LA(1);
  175.  
  176.                     if ( (LA1_0=='y') ) {
  177.                         alt1=1;
  178.                     }
  179.                     switch (alt1) {
  180.                         case 1 :
  181.                             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:37:31: 'ymize'
  182.                             this.match("ymize"); 
  183.  
  184.  
  185.  
  186.                             break;
  187.  
  188.                     }
  189.  
  190.  
  191.  
  192.                     break;
  193.  
  194.             }
  195.             this.state.type = _type;
  196.             this.state.channel = _channel;
  197.         }
  198.         finally {
  199.         }
  200.     },
  201.     // $ANTLR end "A_LOGOUT",
  202.  
  203.     // $ANTLR start A_SANDBOX
  204.     mA_SANDBOX: function()  {
  205.         try {
  206.             var _type = this.A_SANDBOX;
  207.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  208.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:38:11: ( 'Sandbox' )
  209.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:38:13: 'Sandbox'
  210.             this.match("Sandbox"); 
  211.  
  212.  
  213.  
  214.  
  215.             this.state.type = _type;
  216.             this.state.channel = _channel;
  217.         }
  218.         finally {
  219.         }
  220.     },
  221.     // $ANTLR end "A_SANDBOX",
  222.  
  223.     // $ANTLR start A_ACCEPT
  224.     mA_ACCEPT: function()  {
  225.         try {
  226.             var _type = this.A_ACCEPT;
  227.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  228.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:39:11: ( 'Accept' )
  229.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:39:13: 'Accept'
  230.             this.match("Accept"); 
  231.  
  232.  
  233.  
  234.  
  235.             this.state.type = _type;
  236.             this.state.channel = _channel;
  237.         }
  238.         finally {
  239.         }
  240.     },
  241.     // $ANTLR end "A_ACCEPT",
  242.  
  243.     // $ANTLR start URI_START
  244.     mURI_START: function()  {
  245.         try {
  246.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:41:20: ( 'a' .. 'z' | '0' .. '9' )
  247.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:
  248.             if ( (this.input.LA(1)>='0' && this.input.LA(1)<='9')||(this.input.LA(1)>='a' && this.input.LA(1)<='z') ) {
  249.                 this.input.consume();
  250.  
  251.             }
  252.             else {
  253.                 var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  254.                 this.recover(mse);
  255.                 throw mse;}
  256.  
  257.  
  258.  
  259.  
  260.         }
  261.         finally {
  262.         }
  263.     },
  264.     // $ANTLR end "URI_START",
  265.  
  266.     // $ANTLR start URI_PART
  267.     mURI_PART: function()  {
  268.         try {
  269.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:43:20: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '.' | '[' | ']' | ':' | '/' | '@' | '~' | ';' | ',' | '?' | '&' | '=' | '%' | '#' )
  270.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:
  271.             if ( this.input.LA(1)=='#'||(this.input.LA(1)>='%' && this.input.LA(1)<='&')||(this.input.LA(1)>=',' && this.input.LA(1)<=';')||this.input.LA(1)=='='||(this.input.LA(1)>='?' && this.input.LA(1)<='[')||this.input.LA(1)==']'||this.input.LA(1)=='_'||(this.input.LA(1)>='a' && this.input.LA(1)<='z')||this.input.LA(1)=='~' ) {
  272.                 this.input.consume();
  273.  
  274.             }
  275.             else {
  276.                 var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  277.                 this.recover(mse);
  278.                 throw mse;}
  279.  
  280.  
  281.  
  282.  
  283.         }
  284.         finally {
  285.         }
  286.     },
  287.     // $ANTLR end "URI_PART",
  288.  
  289.     // $ANTLR start LOCATION
  290.     mLOCATION: function()  {
  291.         try {
  292.             var _type = this.LOCATION;
  293.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  294.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:47:11: ( 'LOCAL' | 'SELF' )
  295.             var alt3=2;
  296.             var LA3_0 = this.input.LA(1);
  297.  
  298.             if ( (LA3_0=='L') ) {
  299.                 alt3=1;
  300.             }
  301.             else if ( (LA3_0=='S') ) {
  302.                 alt3=2;
  303.             }
  304.             else {
  305.                 var nvae =
  306.                     new org.antlr.runtime.NoViableAltException("", 3, 0, this.input);
  307.  
  308.                 throw nvae;
  309.             }
  310.             switch (alt3) {
  311.                 case 1 :
  312.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:47:13: 'LOCAL'
  313.                     this.match("LOCAL"); 
  314.  
  315.  
  316.  
  317.                     break;
  318.                 case 2 :
  319.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:47:23: 'SELF'
  320.                     this.match("SELF"); 
  321.  
  322.  
  323.  
  324.                     break;
  325.  
  326.             }
  327.             this.state.type = _type;
  328.             this.state.channel = _channel;
  329.         }
  330.         finally {
  331.         }
  332.     },
  333.     // $ANTLR end "LOCATION",
  334.  
  335.     // $ANTLR start URI
  336.     mURI: function()  {
  337.         try {
  338.             var _type = this.URI;
  339.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  340.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:49:11: ( URI_START ( URI_PART )+ )
  341.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:49:13: URI_START ( URI_PART )+
  342.             this.mURI_START(); 
  343.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:49:23: ( URI_PART )+
  344.             var cnt4=0;
  345.             loop4:
  346.             do {
  347.                 var alt4=2;
  348.                 var LA4_0 = this.input.LA(1);
  349.  
  350.                 if ( (LA4_0=='#'||(LA4_0>='%' && LA4_0<='&')||(LA4_0>=',' && LA4_0<=';')||LA4_0=='='||(LA4_0>='?' && LA4_0<='[')||LA4_0==']'||LA4_0=='_'||(LA4_0>='a' && LA4_0<='z')||LA4_0=='~') ) {
  351.                     alt4=1;
  352.                 }
  353.  
  354.  
  355.                 switch (alt4) {
  356.                 case 1 :
  357.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:49:23: URI_PART
  358.                     this.mURI_PART(); 
  359.  
  360.  
  361.                     break;
  362.  
  363.                 default :
  364.                     if ( cnt4 >= 1 ) {
  365.                         break loop4;
  366.                     }
  367.                         var eee = new org.antlr.runtime.EarlyExitException(4, this.input);
  368.                         throw eee;
  369.                 }
  370.                 cnt4++;
  371.             } while (true);
  372.  
  373.  
  374.  
  375.  
  376.             this.state.type = _type;
  377.             this.state.channel = _channel;
  378.         }
  379.         finally {
  380.         }
  381.     },
  382.     // $ANTLR end "URI",
  383.  
  384.     // $ANTLR start GLOB
  385.     mGLOB: function()  {
  386.         try {
  387.             var _type = this.GLOB;
  388.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  389.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:51:11: ( ( URI_START | '*' ) ( URI_PART | '*' )* )
  390.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:51:13: ( URI_START | '*' ) ( URI_PART | '*' )*
  391.             if ( this.input.LA(1)=='*'||(this.input.LA(1)>='0' && this.input.LA(1)<='9')||(this.input.LA(1)>='a' && this.input.LA(1)<='z') ) {
  392.                 this.input.consume();
  393.  
  394.             }
  395.             else {
  396.                 var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  397.                 this.recover(mse);
  398.                 throw mse;}
  399.  
  400.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:51:31: ( URI_PART | '*' )*
  401.             loop5:
  402.             do {
  403.                 var alt5=2;
  404.                 var LA5_0 = this.input.LA(1);
  405.  
  406.                 if ( (LA5_0=='#'||(LA5_0>='%' && LA5_0<='&')||LA5_0=='*'||(LA5_0>=',' && LA5_0<=';')||LA5_0=='='||(LA5_0>='?' && LA5_0<='[')||LA5_0==']'||LA5_0=='_'||(LA5_0>='a' && LA5_0<='z')||LA5_0=='~') ) {
  407.                     alt5=1;
  408.                 }
  409.  
  410.  
  411.                 switch (alt5) {
  412.                 case 1 :
  413.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:
  414.                     if ( this.input.LA(1)=='#'||(this.input.LA(1)>='%' && this.input.LA(1)<='&')||this.input.LA(1)=='*'||(this.input.LA(1)>=',' && this.input.LA(1)<=';')||this.input.LA(1)=='='||(this.input.LA(1)>='?' && this.input.LA(1)<='[')||this.input.LA(1)==']'||this.input.LA(1)=='_'||(this.input.LA(1)>='a' && this.input.LA(1)<='z')||this.input.LA(1)=='~' ) {
  415.                         this.input.consume();
  416.  
  417.                     }
  418.                     else {
  419.                         var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  420.                         this.recover(mse);
  421.                         throw mse;}
  422.  
  423.  
  424.  
  425.                     break;
  426.  
  427.                 default :
  428.                     break loop5;
  429.                 }
  430.             } while (true);
  431.  
  432.  
  433.  
  434.  
  435.             this.state.type = _type;
  436.             this.state.channel = _channel;
  437.         }
  438.         finally {
  439.         }
  440.     },
  441.     // $ANTLR end "GLOB",
  442.  
  443.     // $ANTLR start REGEXP
  444.     mREGEXP: function()  {
  445.         try {
  446.             var _type = this.REGEXP;
  447.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  448.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:53:11: ( '^' (~ '\\n' )+ )
  449.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:53:13: '^' (~ '\\n' )+
  450.             this.match('^'); 
  451.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:53:17: (~ '\\n' )+
  452.             var cnt6=0;
  453.             loop6:
  454.             do {
  455.                 var alt6=2;
  456.                 var LA6_0 = this.input.LA(1);
  457.  
  458.                 if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\uFFFF')) ) {
  459.                     alt6=1;
  460.                 }
  461.  
  462.  
  463.                 switch (alt6) {
  464.                 case 1 :
  465.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:53:17: ~ '\\n'
  466.                     if ( (this.input.LA(1)>='\u0000' && this.input.LA(1)<='\t')||(this.input.LA(1)>='\u000B' && this.input.LA(1)<='\uFFFF') ) {
  467.                         this.input.consume();
  468.  
  469.                     }
  470.                     else {
  471.                         var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  472.                         this.recover(mse);
  473.                         throw mse;}
  474.  
  475.  
  476.  
  477.                     break;
  478.  
  479.                 default :
  480.                     if ( cnt6 >= 1 ) {
  481.                         break loop6;
  482.                     }
  483.                         var eee = new org.antlr.runtime.EarlyExitException(6, this.input);
  484.                         throw eee;
  485.                 }
  486.                 cnt6++;
  487.             } while (true);
  488.  
  489.  
  490.  
  491.  
  492.             this.state.type = _type;
  493.             this.state.channel = _channel;
  494.         }
  495.         finally {
  496.         }
  497.     },
  498.     // $ANTLR end "REGEXP",
  499.  
  500.     // $ANTLR start ALL
  501.     mALL: function()  {
  502.         try {
  503.             var _type = this.ALL;
  504.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  505.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:55:7: ( 'ALL' )
  506.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:55:9: 'ALL'
  507.             this.match("ALL"); 
  508.  
  509.  
  510.  
  511.  
  512.             this.state.type = _type;
  513.             this.state.channel = _channel;
  514.         }
  515.         finally {
  516.         }
  517.     },
  518.     // $ANTLR end "ALL",
  519.  
  520.     // $ANTLR start SUB
  521.     mSUB: function()  {
  522.         try {
  523.             var _type = this.SUB;
  524.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  525.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:57:7: ( 'SUB' )
  526.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:57:9: 'SUB'
  527.             this.match("SUB"); 
  528.  
  529.  
  530.  
  531.  
  532.             this.state.type = _type;
  533.             this.state.channel = _channel;
  534.         }
  535.         finally {
  536.         }
  537.     },
  538.     // $ANTLR end "SUB",
  539.  
  540.     // $ANTLR start HTTPVERB
  541.     mHTTPVERB: function()  {
  542.         try {
  543.             var _type = this.HTTPVERB;
  544.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  545.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:59:11: ( 'A' .. 'Z' ( 'A' .. 'Z' )+ )
  546.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:59:13: 'A' .. 'Z' ( 'A' .. 'Z' )+
  547.             this.matchRange('A','Z'); 
  548.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:59:22: ( 'A' .. 'Z' )+
  549.             var cnt7=0;
  550.             loop7:
  551.             do {
  552.                 var alt7=2;
  553.                 var LA7_0 = this.input.LA(1);
  554.  
  555.                 if ( ((LA7_0>='A' && LA7_0<='Z')) ) {
  556.                     alt7=1;
  557.                 }
  558.  
  559.  
  560.                 switch (alt7) {
  561.                 case 1 :
  562.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:59:22: 'A' .. 'Z'
  563.                     this.matchRange('A','Z'); 
  564.  
  565.  
  566.                     break;
  567.  
  568.                 default :
  569.                     if ( cnt7 >= 1 ) {
  570.                         break loop7;
  571.                     }
  572.                         var eee = new org.antlr.runtime.EarlyExitException(7, this.input);
  573.                         throw eee;
  574.                 }
  575.                 cnt7++;
  576.             } while (true);
  577.  
  578.  
  579.  
  580.  
  581.             this.state.type = _type;
  582.             this.state.channel = _channel;
  583.         }
  584.         finally {
  585.         }
  586.     },
  587.     // $ANTLR end "HTTPVERB",
  588.  
  589.     // $ANTLR start WS
  590.     mWS: function()  {
  591.         try {
  592.             var _type = this.WS;
  593.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  594.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:62:5: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
  595.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:62:8: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
  596.             if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||(this.input.LA(1)>='\f' && this.input.LA(1)<='\r')||this.input.LA(1)==' ' ) {
  597.                 this.input.consume();
  598.  
  599.             }
  600.             else {
  601.                 var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  602.                 this.recover(mse);
  603.                 throw mse;}
  604.  
  605.             _channel=HIDDEN;
  606.  
  607.  
  608.  
  609.             this.state.type = _type;
  610.             this.state.channel = _channel;
  611.         }
  612.         finally {
  613.         }
  614.     },
  615.     // $ANTLR end "WS",
  616.  
  617.     // $ANTLR start COMMENT
  618.     mCOMMENT: function()  {
  619.         try {
  620.             var _type = this.COMMENT;
  621.             var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
  622.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:64:9: ( '#' (~ '\\n' )* )
  623.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:64:11: '#' (~ '\\n' )*
  624.             this.match('#'); 
  625.             // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:64:15: (~ '\\n' )*
  626.             loop8:
  627.             do {
  628.                 var alt8=2;
  629.                 var LA8_0 = this.input.LA(1);
  630.  
  631.                 if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\uFFFF')) ) {
  632.                     alt8=1;
  633.                 }
  634.  
  635.  
  636.                 switch (alt8) {
  637.                 case 1 :
  638.                     // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:64:15: ~ '\\n'
  639.                     if ( (this.input.LA(1)>='\u0000' && this.input.LA(1)<='\t')||(this.input.LA(1)>='\u000B' && this.input.LA(1)<='\uFFFF') ) {
  640.                         this.input.consume();
  641.  
  642.                     }
  643.                     else {
  644.                         var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
  645.                         this.recover(mse);
  646.                         throw mse;}
  647.  
  648.  
  649.  
  650.                     break;
  651.  
  652.                 default :
  653.                     break loop8;
  654.                 }
  655.             } while (true);
  656.  
  657.             _channel=HIDDEN;
  658.  
  659.  
  660.  
  661.             this.state.type = _type;
  662.             this.state.channel = _channel;
  663.         }
  664.         finally {
  665.         }
  666.     },
  667.     // $ANTLR end "COMMENT",
  668.  
  669.     mTokens: function() {
  670.         // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:8: ( T_SITE | T_FROM | A_DENY | A_LOGOUT | A_SANDBOX | A_ACCEPT | LOCATION | URI | GLOB | REGEXP | ALL | SUB | HTTPVERB | WS | COMMENT )
  671.         var alt9=15;
  672.         alt9 = this.dfa9.predict(this.input);
  673.         switch (alt9) {
  674.             case 1 :
  675.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:10: T_SITE
  676.                 this.mT_SITE(); 
  677.  
  678.  
  679.                 break;
  680.             case 2 :
  681.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:17: T_FROM
  682.                 this.mT_FROM(); 
  683.  
  684.  
  685.                 break;
  686.             case 3 :
  687.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:24: A_DENY
  688.                 this.mA_DENY(); 
  689.  
  690.  
  691.                 break;
  692.             case 4 :
  693.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:31: A_LOGOUT
  694.                 this.mA_LOGOUT(); 
  695.  
  696.  
  697.                 break;
  698.             case 5 :
  699.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:40: A_SANDBOX
  700.                 this.mA_SANDBOX(); 
  701.  
  702.  
  703.                 break;
  704.             case 6 :
  705.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:50: A_ACCEPT
  706.                 this.mA_ACCEPT(); 
  707.  
  708.  
  709.                 break;
  710.             case 7 :
  711.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:59: LOCATION
  712.                 this.mLOCATION(); 
  713.  
  714.  
  715.                 break;
  716.             case 8 :
  717.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:68: URI
  718.                 this.mURI(); 
  719.  
  720.  
  721.                 break;
  722.             case 9 :
  723.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:72: GLOB
  724.                 this.mGLOB(); 
  725.  
  726.  
  727.                 break;
  728.             case 10 :
  729.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:77: REGEXP
  730.                 this.mREGEXP(); 
  731.  
  732.  
  733.                 break;
  734.             case 11 :
  735.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:84: ALL
  736.                 this.mALL(); 
  737.  
  738.  
  739.                 break;
  740.             case 12 :
  741.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:88: SUB
  742.                 this.mSUB(); 
  743.  
  744.  
  745.                 break;
  746.             case 13 :
  747.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:92: HTTPVERB
  748.                 this.mHTTPVERB(); 
  749.  
  750.  
  751.                 break;
  752.             case 14 :
  753.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:101: WS
  754.                 this.mWS(); 
  755.  
  756.  
  757.                 break;
  758.             case 15 :
  759.                 // X:\\CVS\\mozilla\\noscript\\ABE\\0.6\\ABE.g:1:104: COMMENT
  760.                 this.mCOMMENT(); 
  761.  
  762.  
  763.                 break;
  764.  
  765.         }
  766.  
  767.     }
  768.  
  769. }, true); // important to pass true to overwrite default implementations
  770.  
  771. org.antlr.lang.augmentObject(ABELexer, {
  772.     DFA9_eotS:
  773.         "\u0002\uffff\u0001\u0008\u0004\uffff\u0001\u0008\u0007\uffff\u0002"+
  774.     "\u000a\u0002\u001c\u0002\uffff\u0001\u000a\u0001\uffff\u0001\u000a\u0001"+
  775.     "\uffff\u0001\u000a\u0001\u0020\u0001\u001c\u0001\uffff\u0001\u000a\u0001"+
  776.     "\u0023\u0001\u0024\u0001\uffff\u0001\u0018\u0001\u000a\u0002\uffff\u0001"+
  777.     "\u0024",
  778.     DFA9_eofS:
  779.         "\u0026\uffff",
  780.     DFA9_minS:
  781.         "\u0001\u0009\u0001\u0041\u0001\u0023\u0004\u0041\u0001\u0023\u0007"+
  782.     "\uffff\u0001\u004c\u0001\u0042\u0002\u0023\u0002\uffff\u0001\u0043\u0001"+
  783.     "\uffff\u0001\u004c\u0001\uffff\u0001\u0046\u0001\u0041\u0001\u0023\u0001"+
  784.     "\uffff\u0003\u0041\u0001\uffff\u0001\u0023\u0001\u004c\u0002\uffff\u0001"+
  785.     "\u0041",
  786.     DFA9_maxS:
  787.         "\u0001\u007a\u0001\u0069\u0001\u007e\u0001\u0065\u0001\u006f\u0001"+
  788.     "\u006e\u0001\u0072\u0001\u007e\u0007\uffff\u0001\u004c\u0001\u0042\u0002"+
  789.     "\u007e\u0002\uffff\u0001\u0043\u0001\uffff\u0001\u004c\u0001\uffff\u0001"+
  790.     "\u0046\u0001\u005a\u0001\u007e\u0001\uffff\u0001\u0041\u0002\u005a\u0001"+
  791.     "\uffff\u0001\u007e\u0001\u004c\u0002\uffff\u0001\u005a",
  792.     DFA9_acceptS:
  793.         "\u0008\uffff\u0001\u0009\u0001\u000a\u0001\u000d\u0001\u000e\u0001"+
  794.     "\u000f\u0001\u0001\u0001\u0005\u0004\uffff\u0001\u0003\u0001\u0004\u0001"+
  795.     "\uffff\u0001\u0006\u0001\uffff\u0001\u0002\u0003\uffff\u0001\u0008\u0003"+
  796.     "\uffff\u0001\u000c\u0002\uffff\u0001\u000b\u0001\u0007\u0001\uffff",
  797.     DFA9_specialS:
  798.         "\u0026\uffff}>",
  799.     DFA9_transitionS: [
  800.             "\u0002\u000b\u0001\uffff\u0002\u000b\u0012\uffff\u0001\u000b"+
  801.             "\u0002\uffff\u0001\u000c\u0006\uffff\u0001\u0008\u0005\uffff"+
  802.             "\u000a\u0007\u0007\uffff\u0001\u0005\u0002\u000a\u0001\u0003"+
  803.             "\u0001\u000a\u0001\u0006\u0005\u000a\u0001\u0004\u0006\u000a"+
  804.             "\u0001\u0001\u0007\u000a\u0003\uffff\u0001\u0009\u0002\uffff"+
  805.             "\u0005\u0007\u0001\u0002\u0014\u0007",
  806.             "\u0004\u000a\u0001\u000f\u000f\u000a\u0001\u0010\u0005\u000a"+
  807.             "\u0006\uffff\u0001\u000e\u0007\uffff\u0001\u000d",
  808.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0005\uffff\u0010\u0012"+
  809.             "\u0001\uffff\u0001\u0012\u0001\uffff\u001d\u0012\u0001\uffff"+
  810.             "\u0001\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u0011\u0012"+
  811.             "\u0001\u0011\u0008\u0012\u0003\uffff\u0001\u0012",
  812.             "\u001a\u000a\u000a\uffff\u0001\u0013",
  813.             "\u000e\u000a\u0001\u0015\u000b\u000a\u0014\uffff\u0001\u0014",
  814.             "\u000b\u000a\u0001\u0017\u000e\u000a\u0008\uffff\u0001\u0016"+
  815.             "\u000a\uffff\u0001\u0014",
  816.             "\u001a\u000a\u0017\uffff\u0001\u0018",
  817.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0005\uffff\u0010\u0012"+
  818.             "\u0001\uffff\u0001\u0012\u0001\uffff\u001d\u0012\u0001\uffff"+
  819.             "\u0001\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u001a\u0012"+
  820.             "\u0003\uffff\u0001\u0012",
  821.             "",
  822.             "",
  823.             "",
  824.             "",
  825.             "",
  826.             "",
  827.             "",
  828.             "\u0001\u0019",
  829.             "\u0001\u001a",
  830.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0003\uffff\u0001\u0008"+
  831.             "\u0001\uffff\u0010\u0012\u0001\uffff\u0001\u0012\u0001\uffff"+
  832.             "\u001d\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u0001\u0012"+
  833.             "\u0001\uffff\u000e\u0012\u0001\u001b\u000b\u0012\u0003\uffff"+
  834.             "\u0001\u0012",
  835.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0003\uffff\u0001\u0008"+
  836.             "\u0001\uffff\u0010\u0012\u0001\uffff\u0001\u0012\u0001\uffff"+
  837.             "\u001d\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u0001\u0012"+
  838.             "\u0001\uffff\u001a\u0012\u0003\uffff\u0001\u0012",
  839.             "",
  840.             "",
  841.             "\u0001\u001d",
  842.             "",
  843.             "\u0001\u001e",
  844.             "",
  845.             "\u0001\u001f",
  846.             "\u001a\u000a",
  847.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0003\uffff\u0001\u0008"+
  848.             "\u0001\uffff\u0010\u0012\u0001\uffff\u0001\u0012\u0001\uffff"+
  849.             "\u001d\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u0001\u0012"+
  850.             "\u0001\uffff\u000c\u0012\u0001\u0021\u000d\u0012\u0003\uffff"+
  851.             "\u0001\u0012",
  852.             "",
  853.             "\u0001\u0022",
  854.             "\u001a\u000a",
  855.             "\u001a\u000a",
  856.             "",
  857.             "\u0001\u0012\u0001\uffff\u0002\u0012\u0003\uffff\u0001\u0008"+
  858.             "\u0001\uffff\u0010\u0012\u0001\uffff\u0001\u0012\u0001\uffff"+
  859.             "\u001d\u0012\u0001\uffff\u0001\u0012\u0001\uffff\u0001\u0012"+
  860.             "\u0001\uffff\u001a\u0012\u0003\uffff\u0001\u0012",
  861.             "\u0001\u0025",
  862.             "",
  863.             "",
  864.             "\u001a\u000a"
  865.     ]
  866. });
  867.  
  868. org.antlr.lang.augmentObject(ABELexer, {
  869.     DFA9_eot:
  870.         org.antlr.runtime.DFA.unpackEncodedString(ABELexer.DFA9_eotS),
  871.     DFA9_eof:
  872.         org.antlr.runtime.DFA.unpackEncodedString(ABELexer.DFA9_eofS),
  873.     DFA9_min:
  874.         org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(ABELexer.DFA9_minS),
  875.     DFA9_max:
  876.         org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(ABELexer.DFA9_maxS),
  877.     DFA9_accept:
  878.         org.antlr.runtime.DFA.unpackEncodedString(ABELexer.DFA9_acceptS),
  879.     DFA9_special:
  880.         org.antlr.runtime.DFA.unpackEncodedString(ABELexer.DFA9_specialS),
  881.     DFA9_transition: (function() {
  882.         var a = [],
  883.             i,
  884.             numStates = ABELexer.DFA9_transitionS.length;
  885.         for (i=0; i<numStates; i++) {
  886.             a.push(org.antlr.runtime.DFA.unpackEncodedString(ABELexer.DFA9_transitionS[i]));
  887.         }
  888.         return a;
  889.     })()
  890. });
  891.  
  892. ABELexer.DFA9 = function(recognizer) {
  893.     this.recognizer = recognizer;
  894.     this.decisionNumber = 9;
  895.     this.eot = ABELexer.DFA9_eot;
  896.     this.eof = ABELexer.DFA9_eof;
  897.     this.min = ABELexer.DFA9_min;
  898.     this.max = ABELexer.DFA9_max;
  899.     this.accept = ABELexer.DFA9_accept;
  900.     this.special = ABELexer.DFA9_special;
  901.     this.transition = ABELexer.DFA9_transition;
  902. };
  903.  
  904. org.antlr.lang.extend(ABELexer.DFA9, org.antlr.runtime.DFA, {
  905.     getDescription: function() {
  906.         return "1:1: Tokens : ( T_SITE | T_FROM | A_DENY | A_LOGOUT | A_SANDBOX | A_ACCEPT | LOCATION | URI | GLOB | REGEXP | ALL | SUB | HTTPVERB | WS | COMMENT );";
  907.     },
  908.     dummy: null
  909. });
  910.  
  911. })();